<html>
   <head>
      <link rel="stylesheet" type="text/css" href="style.css" />
   </head>
   <body onload="">
<h2 class="comptitle">NED File <i>src/common/channels.ned</i></h2>
<table class="typetable">
   <tr>
      <th>Name</th>
      <th>Description</th>
   </tr>
<tr>
   <td>
      <a href="oversim.common.simple_ethernetline.html">simple_ethernetline</a>
      <i> (channel)</i>
   </td>
   <td>

<p>Ethernet channel for SimpleUnderlay</p>
   </td>
</tr>
<tr>
   <td>
      <a href="oversim.common.simple_ethernetline_lossy.html">simple_ethernetline_lossy</a>
      <i> (channel)</i>
   </td>
   <td>

<p>Ethernet channel with packet loss for SimpleUnderlay</p>
   </td>
</tr>
<tr>
   <td>
      <a href="oversim.common.simple_dsl.html">simple_dsl</a>
      <i> (channel)</i>
   </td>
   <td>

<p>DSL channel for SimpleUnderlay</p>
   </td>
</tr>
<tr>
   <td>
      <a href="oversim.common.simple_dsl_lossy.html">simple_dsl_lossy</a>
      <i> (channel)</i>
   </td>
   <td>

<p>DSL channel with packet loss for SimpleUnderlay</p>
   </td>
</tr>
<tr>
   <td>
      <a href="oversim.common.inet_fiberline.html">inet_fiberline</a>
      <i> (channel)</i>
   </td>
   <td>

<p>Fiberline channel for InetUnderlay</p>
   </td>
</tr>
<tr>
   <td>
      <a href="oversim.common.inet_ethernetline.html">inet_ethernetline</a>
      <i> (channel)</i>
   </td>
   <td>

<p>Ethernet channel for InetUnderlay</p>
   </td>
</tr>
<tr>
   <td>
      <a href="oversim.common.inet_ethernetline_lossy.html">inet_ethernetline_lossy</a>
      <i> (channel)</i>
   </td>
   <td>

<p>Ethernet channel with packet loss for InetUnderlay</p>
   </td>
</tr>
<tr>
   <td>
      <a href="oversim.common.inet_dsl.html">inet_dsl</a>
      <i> (channel)</i>
   </td>
   <td>

<p>DSL channel for InetUnderlay</p>
   </td>
</tr>
<tr>
   <td>
      <a href="oversim.common.inet_dsl_lossy.html">inet_dsl_lossy</a>
      <i> (channel)</i>
   </td>
   <td>

<p>DSL channel with packet loss for InetUnderlay</p>
   </td>
</tr>
<tr>
   <td>
      <a href="oversim.common.inet_dialup_56k.html">inet_dialup_56k</a>
      <i> (channel)</i>
   </td>
   <td>

<p>56k modem channel for InetUnderlay</p>
   </td>
</tr>
</table>
<h3 class="subtitle">Source code:</h3>
<pre class="src"><span style="color: #800000; font-weight: bold; ">package</span><span style="color: #000000; "> </span><span style="color: #000000; ">oversim</span><span style="color: #000000; ">.</span><span style="color: #000000; ">common</span><span style="color: #000000; ">;

</span><span style="color: #808080; font-style: italic; ">// Ethernet channel for SimpleUnderlay
</span><span style="color: #800000; font-weight: bold; ">channel</span><span style="color: #000000; "> </span><span style="color: #000000; ">simple_ethernetline</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">extends</span><span style="color: #000000; "> </span><span style="color: #000000; ">ned</span><span style="color: #000000; ">.</span><span style="color: #000000; ">DatarateChannel</span><span style="color: #000000; ">
{
    </span><span style="color: #800000; font-weight: bold; ">parameters</span><span style="color: #000000; ">:
        </span><span style="color: #000000; ">delay</span><span style="color: #000000; "> = </span><span style="color: #008000; ">0</span><span style="color: #000000; ">ms</span><span style="color: #000000; ">;
        </span><span style="color: #000000; ">datarate</span><span style="color: #000000; "> = </span><span style="color: #008000; ">10</span><span style="color: #000000; ">Mbps</span><span style="color: #000000; ">;
}

</span><span style="color: #808080; font-style: italic; ">// Ethernet channel with packet loss for SimpleUnderlay
</span><span style="color: #800000; font-weight: bold; ">channel</span><span style="color: #000000; "> </span><span style="color: #000000; ">simple_ethernetline_lossy</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">extends</span><span style="color: #000000; "> </span><span style="color: #000000; ">ned</span><span style="color: #000000; ">.</span><span style="color: #000000; ">DatarateChannel</span><span style="color: #000000; ">
{
    </span><span style="color: #800000; font-weight: bold; ">parameters</span><span style="color: #000000; ">:
        </span><span style="color: #000000; ">delay</span><span style="color: #000000; "> = </span><span style="color: #008000; ">0</span><span style="color: #000000; ">ms</span><span style="color: #000000; ">;
        </span><span style="color: #000000; ">datarate</span><span style="color: #000000; "> = </span><span style="color: #008000; ">10</span><span style="color: #000000; ">Mbps</span><span style="color: #000000; ">;
        </span><span style="color: #000000; ">ber</span><span style="color: #000000; "> = </span><span style="color: #008000; ">1</span><span style="color: #000000; ">e</span><span style="color: #000000; ">-</span><span style="color: #008000; ">5</span><span style="color: #000000; ">;
}

</span><span style="color: #808080; font-style: italic; ">// DSL channel for SimpleUnderlay
</span><span style="color: #800000; font-weight: bold; ">channel</span><span style="color: #000000; "> </span><span style="color: #000000; ">simple_dsl</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">extends</span><span style="color: #000000; "> </span><span style="color: #000000; ">ned</span><span style="color: #000000; ">.</span><span style="color: #000000; ">DatarateChannel</span><span style="color: #000000; ">
{
    </span><span style="color: #800000; font-weight: bold; ">parameters</span><span style="color: #000000; ">:
        </span><span style="color: #000000; ">delay</span><span style="color: #000000; "> = </span><span style="color: #008000; ">20</span><span style="color: #000000; ">ms</span><span style="color: #000000; ">;
        </span><span style="color: #000000; ">datarate</span><span style="color: #000000; "> = </span><span style="color: #008000; ">1</span><span style="color: #000000; ">Mbps</span><span style="color: #000000; ">;
}

</span><span style="color: #808080; font-style: italic; ">// DSL channel with packet loss for SimpleUnderlay
</span><span style="color: #800000; font-weight: bold; ">channel</span><span style="color: #000000; "> </span><span style="color: #000000; ">simple_dsl_lossy</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">extends</span><span style="color: #000000; "> </span><span style="color: #000000; ">ned</span><span style="color: #000000; ">.</span><span style="color: #000000; ">DatarateChannel</span><span style="color: #000000; ">
{
    </span><span style="color: #800000; font-weight: bold; ">parameters</span><span style="color: #000000; ">:
        </span><span style="color: #000000; ">delay</span><span style="color: #000000; "> = </span><span style="color: #008000; ">20</span><span style="color: #000000; ">ms</span><span style="color: #000000; ">;
        </span><span style="color: #000000; ">datarate</span><span style="color: #000000; "> = </span><span style="color: #008000; ">1</span><span style="color: #000000; ">Mbps</span><span style="color: #000000; ">;
        </span><span style="color: #000000; ">ber</span><span style="color: #000000; "> = </span><span style="color: #008000; ">1</span><span style="color: #000000; ">e</span><span style="color: #000000; ">-</span><span style="color: #008000; ">5</span><span style="color: #000000; ">;
}

</span><span style="color: #808080; font-style: italic; ">// Fiberline channel for InetUnderlay
</span><span style="color: #800000; font-weight: bold; ">channel</span><span style="color: #000000; "> </span><span style="color: #000000; ">inet_fiberline</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">extends</span><span style="color: #000000; "> </span><span style="color: #000000; ">ned</span><span style="color: #000000; ">.</span><span style="color: #000000; ">DatarateChannel</span><span style="color: #000000; ">
{
    </span><span style="color: #800000; font-weight: bold; ">parameters</span><span style="color: #000000; ">:
        </span><span style="color: #000000; ">delay</span><span style="color: #000000; "> = </span><span style="color: #008000; ">1</span><span style="color: #000000; ">ms</span><span style="color: #000000; ">;
        </span><span style="color: #000000; ">datarate</span><span style="color: #000000; "> = </span><span style="color: #008000; ">10</span><span style="color: #000000; ">Gbps</span><span style="color: #000000; ">;
}

</span><span style="color: #808080; font-style: italic; ">// Ethernet channel for InetUnderlay
</span><span style="color: #800000; font-weight: bold; ">channel</span><span style="color: #000000; "> </span><span style="color: #000000; ">inet_ethernetline</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">extends</span><span style="color: #000000; "> </span><span style="color: #000000; ">ned</span><span style="color: #000000; ">.</span><span style="color: #000000; ">DatarateChannel</span><span style="color: #000000; ">
{
    </span><span style="color: #800000; font-weight: bold; ">parameters</span><span style="color: #000000; ">:
        </span><span style="color: #000000; ">delay</span><span style="color: #000000; "> = </span><span style="color: #008000; ">10</span><span style="color: #000000; ">ms</span><span style="color: #000000; ">;
        </span><span style="color: #000000; ">datarate</span><span style="color: #000000; "> = </span><span style="color: #008000; ">10</span><span style="color: #000000; ">Mbps</span><span style="color: #000000; ">;
}

</span><span style="color: #808080; font-style: italic; ">// Ethernet channel with packet loss for InetUnderlay
</span><span style="color: #800000; font-weight: bold; ">channel</span><span style="color: #000000; "> </span><span style="color: #000000; ">inet_ethernetline_lossy</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">extends</span><span style="color: #000000; "> </span><span style="color: #000000; ">ned</span><span style="color: #000000; ">.</span><span style="color: #000000; ">DatarateChannel</span><span style="color: #000000; ">
{
    </span><span style="color: #800000; font-weight: bold; ">parameters</span><span style="color: #000000; ">:
        </span><span style="color: #000000; ">delay</span><span style="color: #000000; "> = </span><span style="color: #008000; ">10</span><span style="color: #000000; ">ms</span><span style="color: #000000; ">;
        </span><span style="color: #000000; ">datarate</span><span style="color: #000000; "> = </span><span style="color: #008000; ">10</span><span style="color: #000000; ">Mbps</span><span style="color: #000000; ">;
        </span><span style="color: #000000; ">ber</span><span style="color: #000000; "> = </span><span style="color: #008000; ">1</span><span style="color: #000000; ">e</span><span style="color: #000000; ">-</span><span style="color: #008000; ">5</span><span style="color: #000000; ">;
}

</span><span style="color: #808080; font-style: italic; ">// DSL channel for InetUnderlay
</span><span style="color: #800000; font-weight: bold; ">channel</span><span style="color: #000000; "> </span><span style="color: #000000; ">inet_dsl</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">extends</span><span style="color: #000000; "> </span><span style="color: #000000; ">ned</span><span style="color: #000000; ">.</span><span style="color: #000000; ">DatarateChannel</span><span style="color: #000000; ">
{
    </span><span style="color: #800000; font-weight: bold; ">parameters</span><span style="color: #000000; ">:
        </span><span style="color: #000000; ">delay</span><span style="color: #000000; "> = </span><span style="color: #008000; ">30</span><span style="color: #000000; ">ms</span><span style="color: #000000; ">;
        </span><span style="color: #000000; ">datarate</span><span style="color: #000000; "> = </span><span style="color: #008000; ">1</span><span style="color: #000000; ">Mbps</span><span style="color: #000000; ">;
}

</span><span style="color: #808080; font-style: italic; ">// DSL channel with packet loss for InetUnderlay
</span><span style="color: #800000; font-weight: bold; ">channel</span><span style="color: #000000; "> </span><span style="color: #000000; ">inet_dsl_lossy</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">extends</span><span style="color: #000000; "> </span><span style="color: #000000; ">ned</span><span style="color: #000000; ">.</span><span style="color: #000000; ">DatarateChannel</span><span style="color: #000000; ">
{
    </span><span style="color: #800000; font-weight: bold; ">parameters</span><span style="color: #000000; ">:
        </span><span style="color: #000000; ">delay</span><span style="color: #000000; "> = </span><span style="color: #008000; ">30</span><span style="color: #000000; ">ms</span><span style="color: #000000; ">;
        </span><span style="color: #000000; ">datarate</span><span style="color: #000000; "> = </span><span style="color: #008000; ">1</span><span style="color: #000000; ">Mbps</span><span style="color: #000000; ">;
        </span><span style="color: #000000; ">ber</span><span style="color: #000000; "> = </span><span style="color: #008000; ">1</span><span style="color: #000000; ">e</span><span style="color: #000000; ">-</span><span style="color: #008000; ">5</span><span style="color: #000000; ">;
}

</span><span style="color: #808080; font-style: italic; ">// 56k modem channel for InetUnderlay
</span><span style="color: #800000; font-weight: bold; ">channel</span><span style="color: #000000; "> </span><span style="color: #000000; ">inet_dialup_56k</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">extends</span><span style="color: #000000; "> </span><span style="color: #000000; ">ned</span><span style="color: #000000; ">.</span><span style="color: #000000; ">DatarateChannel</span><span style="color: #000000; ">
{
    </span><span style="color: #800000; font-weight: bold; ">parameters</span><span style="color: #000000; ">:
        </span><span style="color: #000000; ">delay</span><span style="color: #000000; "> = </span><span style="color: #008000; ">220</span><span style="color: #000000; ">ms</span><span style="color: #000000; ">;
        </span><span style="color: #000000; ">datarate</span><span style="color: #000000; "> = </span><span style="color: #008000; ">56</span><span style="color: #000000; ">Kbps</span><span style="color: #000000; ">;
}
</span></pre>
   <hr><p class="footer"><a href="http://creativecommons.org/licenses/by-sa/3.0" target="_top"><img src="by-sa.png"></a> This documentation is released under the <a href="http://creativecommons.org/licenses/by-sa/3.0" target="_top">Creative Commons license</a></p>
   </body>
</html>
